<style type="text/css">
.multi-img-details .multi-item{max-height:none;max-width: none;position: relative;float: none;margin-right: 18px;height:60px;width:100%;padding:5px 0;}
.multi-img-details .multi-item img{width:50px;height:50px;float:left;margin-right:5px;}
.multi-img-details .img-nickname{width:300px;position: inherit;float:left;background:none;color:#666;text-align: left;}
</style>
<div class="form-group">
	<label class="col-sm-2 control-label">完成订单X天之内允许退换货</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}
		<div class="input-group">
			<input type="text" name="data[refundday]" class="form-control" value="{$data['refundday']}" />
			<div class="input-group-addon">天</div>
		</div>
		<span class='help-block'>设置0则表示商品都不允许退换货</span>
		{else}
		<div class='form-control-static'>
			{if empty($data['refundday'])}不允许退款换货{else}{$data['refundday']} 天{/if}
		</div>
		{/if}
	</div>
</div>
<div class="form-group">
	<label class="col-sm-2 control-label">选择不允许退换货的商品</label>
	<div class="col-sm-9 col-xs-12">
		{ifp 'groups.set.edit'}
		<div class="input-group">
			<?php echo tpl_selector('goodsid',array(
			'preview'=>true,
			'readonly'=>true,
			'multi'=>1,
			'value'=>$item['title'],
			'url'=>webUrl('groups/set/query'),
			'items'=>$goods,
			'buttontext'=>'选择商品',
			'placeholder'=>'请选择商品')
			)
			?>
			<!--<div class="input-group multi-img-details container ui-sortable">
				{loop $goods $item}
				<div data-name="goodsid" data-id="426" class="multi-item">
					<img src="{php echo tomedia($item['thumb'])}" class="img-responsive img-thumbnail">
					<div class="img-nickname">{$item['title']}</div>
					<div style="clear:both;"></div>
				</div>
				{/loop}
			</div>-->

		</div>
		<span class='help-block'>当前列表中存在的商品不允许退换货</span>
		{else}
			{if !empty($goods)}
				{loop $goods $item}
				<a href="{php echo tomedia($item['thumb'])}" target='_blank'>
					<img src="{php echo tomedia($item['thumb'])}" style='width:100px;border:1px solid #ccc;padding:1px' />
				</a>
				{/loop}
			{else}
			暂无商品
			{/if}
		{/if}
	</div>
</div>